<?
class Tag extends Eloquent {
	public static $timestamps=false;

	public function archlive(){
		return $this->belongs_to("archlive");
	}

	public static function hot($limit=9){
		$tags = static::take($limit)->get();
		$words=null;
		foreach ($tags as $tag){
			$words .= $tag->keywords;
		}
		$tags=explode("|", $words);
		array_pop($tags);
		return $tags;
	}
}
?>